if($ucp_on!=true OR isset($_GET['ucp_on'])){ die("
U heeft hier geen toegang.
"); } include "config.php"; include "inc/ftie_bbcode.php"; $query3=mysqli_query($mysqli_connection, "SELECT * FROM dst_astro_content WHERE kortetitel='".$_GET['pag']."' AND gekeurd='1'"); $result3=mysqli_num_rows($query3); if($result3==0) { $sql=mysqli_query($mysqli_connection, "SELECT * FROM dst_astro_content WHERE id='".$_GET['id']."' AND gekeurd='1'"); $num=mysqli_num_rows($sql); if($num==1) { while($row=mysqli_fetch_array($sql)) { header("Location: http://www.desterren.net/astro/".$_GET['id']."/".$row['kortetitel']."/"); } } else { header("Location: http://www.desterren.net/404/"); } } else { while($object3=mysqli_fetch_object($query3)) { $title=$object3->titel; $content=$object3->content; $datum=$object3->datum; $datum2=$object3->datum2; $userid=$object3->user_id; $pg_id=$object3->id; $kortetitel=$object3->kortetitel; list($date,$time)=explode(' ',$datum2); list($year,$month,$day)=explode('-',$date); list($hours,$minutes)=explode(':',$time); } if($pg_id!=$_GET['id']) { header("Location: http://www.desterren.net/astro/".$pg_id."/".$_GET['pag']."/"); } else { $titel2=$title.' :: Astronomie'; $titel="Astronomie"; include "inc/header.php"; $sql=mysqli_query($mysqli_connection, "SELECT * FROM dst_users WHERE id='".$userid."'"); while($row=mysqli_fetch_array($sql)) { if(!empty($row['fullname'])) { $auteur=$row['fullname']; } else { $auteur=$row['username']; } } include "inc/maand2.php"; $content=bbcode($content); ?>echo $content; ?>
} } ?> if($_SERVER['PHP_SELF']!='/www.desterren_old.net/index.php' && $_SERVER['PHP_SELF']!='/index.php'){ ?> if($_SERVER['PHP_SELF']=="/inc/footer.php"){ die("U heeft hier geen toegang."); } ?> if(($_SERVER['PHP_SELF']!="/zoek.php" && $_SERVER['PHP_SELF']!="/forum.php") OR isset($show_right)){ ?>